//
//  YSPageStyle.h
//  YSPageViewExample_OC
//
//  Created by MOLBASE on 2017/12/5.
//  Copyright © 2017年 YangShen. All rights reserved.
//

#import <UIKit/UIKit.h>

// 颜色渐变样式
typedef NS_ENUM(NSUInteger, YSTitleColorGradientStyle) {
    YSTitleColorGradientStyleRGB , // RGB:默认RGB样式
    YSTitleColorGradientStyleFill, // 填充
};

#define YSScreenW [UIScreen mainScreen].bounds.size.width
#define YSScreenH [UIScreen mainScreen].bounds.size.height

@interface YSPageStyle : NSObject

/// 是否可以滚动 Default: YES
@property (nonatomic, assign) BOOL isScrollEnable;

/// 内容是否需要穿透标题栏
@property (nonatomic, assign) BOOL isFullScreen;

/// 选中的下标 0...
@property (nonatomic, assign) NSInteger selectIndex;

/// ====================== 关于标题 =============================
/// 标题视图高度
@property (nonatomic, assign) CGFloat titleHeight;
/// 标题视图背景颜色
@property (nonatomic, strong) UIColor *titleBackgroundColor;
/// 标题视图底部的分割线
@property (nonatomic, assign) BOOL isHaveTitleSeparator;
@property (nonatomic, strong) UIColor *titleSeparatorColor;

/// ====================== 关于标题Item =============================
/// 标题宽度
@property (nonatomic, assign) CGFloat titleWidth;
/// 标题间距
@property (nonatomic, assign) CGFloat titleMargin;
/// 标题字体大小
@property (nonatomic, strong) UIFont *titleFont;
/// 标题平常颜色
@property (nonatomic, strong) UIColor *titleNormalColor;
/// 标题选中颜色
@property (nonatomic, strong) UIColor *titleSelectedColor;

/// ====================== 关于颜色渐变 =============================
/// 是否字体渐变渐变
@property (nonatomic, assign) BOOL isShowTitleGradient;
/// 颜色渐变样式
@property (nonatomic, assign) YSTitleColorGradientStyle titleColorGradientStyle;

/// ====================== 关于缩放 =============================
/// 是否显示标题缩放
@property (nonatomic, assign) BOOL isShowTitleScale;
/// 标题缩放比例
@property (nonatomic, assign) CGFloat titleTransformScale;

/// ====================== 关于遮罩 =============================
/// 是否显示遮罩
@property (nonatomic, assign) BOOL isShowTitleCover;
/// 遮罩颜色
@property (nonatomic, strong) UIColor *coverColor;
/// 遮盖圆角半径
@property (nonatomic, assign) CGFloat coverCornerRadius;

/// ====================== 关于下划线 =============================
/// 是否显示下划线
@property (nonatomic, assign) BOOL isShowUnderLine;
/// 是否延迟滚动下标(延迟滚动就是下标在内容视图结束滚动后才开始滚动)
@property (nonatomic, assign) BOOL isDelayScroll;
/// 下划线宽度等于标题宽度
@property (nonatomic, assign) BOOL isUnderLineEqualTitleWidth;
/// 下划线高度
@property (nonatomic, assign) CGFloat underLineHeight;
/// 下划线颜色
@property (nonatomic, strong) UIColor *underLineColor;

@end
